package com.cctc.mychat.common.protocol.serializer;

import com.cctc.mychat.common.protocol.serializer.impl.JsonSerializer;

public interface Serializer {
    Serializer DEFAULT = new JsonSerializer();

    Byte getSerializerType();

    byte[] serialize(Object o);

    <T> T deserialize(Class<T> tClass, byte[] data);
}
